package day3.HomeWork;

/**
 * ClassName：Test10
 *
 * @Author：小鱼
 * @Create：2025-08-20 21:51
 */
public class Test10 {
    public static void main(String[] args) {
        Clerk clerk = new Clerk();
        //多个生产者
        Thread p1 = new Productor("生产者1", clerk);
        Thread p2 = new Productor("生产者2", clerk);
        //多个消费者
        Thread c1 = new Customer("消费者1", clerk);
        Thread c2 = new Customer("消费者2", clerk);
        Thread c3 = new Customer("消费者3", clerk);

        p1.start();
        p2.start();
        c1.start();
        c2.start();
        c3.start();

    }
}
